home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aimtech Test Drive
/
Aimtech Test Drive - Icon Author & CBT Express (Aimtech Corporation)(1996).iso
/
guidtour
/
iconware
/
cursor.prt
< prev
next >
Wrap
Text File
|
1994-09-15
|
1KB
|
31 lines
; DLL functions for returning and setting cursor information.
;The following call loads a mouse cursor:
USER.EXE: HANDLE WINAPI LoadCursor(int, long);
;Example1- LoadCursor(0, 32514);
;This loads the Windows hourglass wait cursor id (found in Windows SDK).
;In the DLL Call icon it is loaded into @wait_cursor.
;The following call sets the cursor during runtime:
IAUTILS.DLL: HANDLE WINAPI iauSetRunCursor(HANDLE);
;Example1- iauSetRunCursor(@wait_cursor);
;This takes the cursor id loaded in the previous call and changes the
;runtime cursor to the hourglass.
;The following call gets the mouse cursor position (X,Y):
USER.EXE: void WINAPI GetCursorPos( LPPOINT );
;Example1- GetCursorPos(@XY)
;This would return 100,100 for example.
;The following call sets the mouse cursor position (X,Y):
USER.EXE: void WINAPI SetCursorPos(INT,INT);
;Example1- SetCursorPos(100,100)
;This example forces the mouse cursor postion to location x=100,y=100.
;The following call turns the mouse cursor on or off system wide:
USER.EXE: int WINAPI ShowCursor(BOOL);
;Example1- ShowCursor(0)
;This example turns off the Windows cursor system wide.
;Example2- ShowCursor(-1)
;This example turns the cursor back on system wide.